<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>

    <title>职位发布</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type='text/javascript' src='/HR_Sys/dwr/interface/JconfigFileBIZ.js'></script>
	<script type='text/javascript' src='/HR_Sys/dwr/engine.js'></script>
	<script type='text/javascript' src='/HR_Sys/dwr/util.js'></script>
	<script language="javascript" type="text/javascript">
	  	function second(){	  		
	  		var secondValue=$("engageMajorRelease.firstKindId").value;
	  		JconfigFileBIZ.getConfigFileSecondKindList(secondValue,showSecond);
	  	}
	  	function showSecond(data){
	  		var second=$("engageMajorRelease.secondKindId");								//获得二级机构下拉框对象
	  		second.options.length=1;
			$("engageMajorRelease.thirdKindId").options.length=1;
	  		dwr.util.addOptions(second,data,"secondKindId","secondKindName");
	  	}
	  	
	  	function third(){
	  		var third=$("engageMajorRelease.secondKindId").value;
	  		JconfigFileBIZ.getConfigFileThirdKindList(third,showThird);	  	
	  	}
	  	
	  	function showThird(data){
	  		var third=$("engageMajorRelease.thirdKindId");								//获得下拉框对象
	  		third.options.length=1;
	  		dwr.util.addOptions(third,data,"thirdKindId","thirdKindName");
	  	}
		
	  </script>


  </head>
  
  <body>
  <html:form action="engageMajorRelease.do?op=prepareEngagePage" method="post">
    <table border=1>
    	<tr>
	    	<td>Ⅰ级机构：</td>
	    	<td>
	    		<html:select property="engageMajorRelease.firstKindId" onchange="second()">
	    			<html:option value="00">  请选择  </html:option>
	    			<html:optionsCollection property="firstKinds" label="firstKindName" value="firstKindId"/>
	    		</html:select>
	    	</td>
	    	<td>Ⅱ级机构：</td>
	    	<td>
	    	    <html:select property="engageMajorRelease.secondKindId" onchange="third()">
					<html:option value="00">  请选择  </html:option>
				</html:select>
	    	</td>
	    	<td>Ⅲ级机构：</td>
	    	<td>
	    	    <html:select property="engageMajorRelease.thirdKindId">
					<html:option value="00">  请选择  </html:option>
				</html:select>
	    	</td>
	    	<td>招聘类型：</td>
	    	<td>
	    	    <html:select property="engageMajorRelease.engageType">
					<html:option value="00">  请选择  </html:option>
					<html:optionsCollection property="engageTypes" label="attributeName" value="attributeName"/>
				</html:select>
	    	</td>
    	</tr>
    	<tr>
	    	<td>职位分类：</td>
	    	<td>
	    		<html:select property="engageMajorRelease.majorKindId">
	    			<html:option value="00">  请选择  </html:option>
	    			<html:optionsCollection property="majorKinds" label="majorKindName" value="majorKindId"/>
	    		</html:select>
	    	</td>
	    	<td>职位名称：</td>
	    	<td>
	    	    <html:select property="engageMajorRelease.majorId">
	    	    	<html:option value="00">  请选择  </html:option>
	    	    </html:select>
	    	</td>
	    	<td>招聘人数：</td>
	    	<td>
	    	    <html:text property="engageMajorRelease.humanAmount"/>
	    	</td>
	    	<td>截至日期：</td>
	    	<td>
	    	    <html:text property="engageMajorRelease.deadline"/>
	    	</td>
    	</tr>
    	<tr>
    		<td>职位描述</td>
    		<td colspan="7"><html:textarea property="engageMajorRelease.majorDescribe"/></td>
    	</tr>
    	<tr>
    		<td>招聘要求</td>
    		<td colspan="7"><html:textarea property="engageMajorRelease.engageRequired"/></td>
    	</tr>
    </table>
   </html:form>
  </body>
</html:html>
